<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查找商品信息</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>

<div th:replace="common/top">
</div>
<!--<div id="BackLink">-->
<!--    <a th:href="@{main}">Return to Main Menu</a>-->
<!--</div>-->
<div id="BackLink">
    <a th:href="@{view}">Return to Main Menu</a>
</div>
<div id="Catalog">

    <table>
        <tr>
            <th>&nbsp;</th>
            <th>Product ID</th>
            <th>Name</th>
        </tr>

        <!--        <tr th:each="product:${productList}">-->
        <!--            <td><a th:action="@{/searchProduct}" th:method="post">productId</a></td>-->
        <!--        </tr>-->

        <!--        <c:forEach var="product" items="${sessionScope.productList}">-->
        <tr th:each="product:${productList}">
            <td>
                <a th:href="@{'viewProduct?productId='+${product.productId}}" th:utext="${product.description}">${product.description}</a>
            </td>
            <td><b>
                <a th:href="@{'viewProduct?productId='+${product.productId}}" th:text="${product.productId}"><font color="BLACK"> ${product.productId} </font></a>
            </b></td>
            <td th:text="${product.name}">${product.name}</td>
        </tr>
        <!--        </c:forEach>-->
        <tr>
            <td></td>
        </tr>

    </table>

</div>

<div th:replace="common/bottom">
</div>
</body>
</html>